// 实时交易状态
import { reactive } from "vue";
import type { PieData, PieConfig } from "@/components/custom/PieChart.vue";
export function useRealTransactionStatus() {
    const pieData: PieData[] = reactive([
        { name: "Search", value: 1048 },
        { name: "Direct", value: 735 },
        { name: "Email", value: 580 },
        { name: "Union Ads", value: 484 },
        { name: "Video Ads", value: 300 },
    ]);

    const pieConfig: PieConfig = reactive({
        title: "",
        radius: ["30%", "40%"],
        roseType: "radius", // 南丁格尔玫瑰
        showLabel: false,
        centerText: true, // 中心显示
    });
    return { pieData, pieConfig };
}
